package com.epoch.service.impl;

import com.epoch.entity.Consumer;
import com.epoch.dao.ConsumerDao;
import com.epoch.service.ConsumerService;
import com.epoch.utils.Base;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author admin
 */
@Service
@Slf4j
public class ConsumerServiceImpl implements ConsumerService {

    @Autowired
    private ConsumerDao consumerDao;

    @Autowired
    private Base base;

    @Override
    public Consumer getById(String csId) {
        log.info("ConsumerServiceImpl: "+csId);
        return consumerDao.getById(csId);
    }

    @Override
    public Consumer login(String csPhone, String csPwd) {
        log.info(" ConsumerServiceImpl "+csPhone+" "+csPwd);
        return consumerDao.login(csPhone, csPwd);
    }
}
